package ex_inheritance;

import ex_class.Car;

public class Truck extends Car {
	int ton;
	
	Truck(String name, String color, boolean gas, int ton) {
		super(name, color, gas);
		this.ton = ton;
	}

	@Override
	public void run() {
		System.out.println("우당탕 쿵쾅");
	}
	
	public void convey() {
		System.out.println("짐을 실어 나른다");
	}
	
}
